<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
      <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>平台财务总控</title>
<link rel="stylesheet" href="/bsc/js/common/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/bsc/js/common/bootstrap/css/bootstrap-theme.min.css">
<script src="/bsc/js/common/bootstrap/js/jquery-3.1.1.min.js"></script>
<script src="/bsc/js/common/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<form action="" method="post">
<table width="800" height="300" align="center" bordercolor="bule"  border="1">
<tr style="background-color:  #66CCCC">
<td>总现金收入:${businessorder.totalcash }</td>
<td>总消耗收入:${businessorder.totalconsumption }</td>
</tr>

<tr style="background-color: #FFCC33">
<td>颜值现金收入${businessorder.totalmoney }</td>
<td>颜值消耗收入${businessorder.beautynum }</td>

</tr>
</table>
</form>
<form action="findshop" method="post">
<table border="1" width="1000" align="center" class="table table-striped" class="table table-hover">
<tr align="center">
<td colspan="11">
店铺名称:<select name="shop_name" >
<option value="">--请选择--</option>
<c:forEach items="${list2 }" var="shopname">
<option value="${shopname.shop_name }">${shopname.shop_name }</option>
</c:forEach>
</select>
 <button type="submit" class="btn btn-primary">查询</button>&nbsp;
 <input type="button" class="btn btn-primary" id="exportExcel" value="导出excel"/>
</td>
</tr>

<tr>
<td>&nbsp&nbsp&nbsp&nbsp</td>
<td>店铺编号</td>
<td>店铺名称</td>
<td>店铺简称</td>
<td>店铺现金收入</td>
<td>现金收入目标业绩</td>
<td>完成率</td>
<td>店铺消耗收入</td>
<td>消耗收入目标业绩</td>
<td>完成率</td>
<td>免费颜值收入</td>
</tr>
<c:forEach items="${list }" var="shop">
<tr style="background-color: ">
<td>&nbsp&nbsp&nbsp&nbsp</td>
<td>${shop.shop_id }</td>
<td>${shop.shop_name }</td>
<td>${shop.short_name }</td>
<td>${shop.cash_income}</td>
<td>${shop.month_cash_in} </td>
<td>${shop.a }</td>
<td>${shop.extend_income }</td>
<td>${shop.month_expend_in }</td>
<td>${shop.b }</td>
<td>${shop.free_num }</td> 
</tr>
</c:forEach>
</table>
</form>
<form action="" method="post" id="zhangnuo">

</form>
<script  type="text/javascript">
$("#exportExcel").on("click",function(){
	var url = "http://localhost:8081/bsc/shopexcel";
	$("#zhangnuo").attr("action",url);
	$("#zhangnuo").submit();
});
</script>
</body>
</html>